'''
Created on Jun 26, 2012

@author: daoxuandung
'''

from google.appengine.ext import ndb


class Tag(ndb.Model):
    tag = ndb.StringProperty()
    weight = ndb.IntegerProperty(default=1)


class Recipe(ndb.Model):
    title = ndb.StringProperty()
    recipe = ndb.TextProperty()
    tags = ndb.KeyProperty(kind="Tag", repeated=True)
    likes = ndb.IntegerProperty(default=0)
